﻿namespace Arbalest.Models
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Warehouse
    {
        public long Id { get; set; }

        [Required(ErrorMessage="Code is required")]
        [DisplayName("Code")]
        public string Code { get; set; }

        [DisplayName("Name")]
        public string Name { get; set; }
        
        [DisplayName("Description")]
        public string Description { get; set; }

        //[DataType(DataType.Date)]
        //[UIHint("ISODate")]
        [DisplayName("Date")]
        [DisplayFormat(DataFormatString = "{0:d}")]
        [Required(ErrorMessage="Date is required")]
        public DateTime? CreatedDateTime { get; set; }
    }
}